<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
 
 
<head>     
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />     
<title>图片上传本地预览</title>     
<style type="text/css">
#preview{width:499px;min-height:50px;border:1px solid #000;}
#imghead {filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=image);}
</style>
<script src="../src/js-upload-preview.js"></script>
 
 
</head>     
<body>
<div id="preview">
    <img id="imghead">
</div>
     
      
    <input type="file" onchange="previewImage(this,'imghead')" />     
</body>     
</html>